﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Enterprise.Management.ViewModels
{
    public class RewardsPunishmentViewModel : ViewModelBase
    {
        public int? Id { get; set; }

        [Required(ErrorMessage="必填项")]
        [Display(Name="时间")]
        [DisplayFormat(ApplyFormatInEditMode=true, DataFormatString="{0:yyyy-MM-dd}")]
        public DateTime? Date { get; set; }

        [Required(ErrorMessage = "必选项")]
        [Display(Name = "奖惩部门")]
        public int DeptId { get; set; }

        [Required(ErrorMessage = "必选项")]
        [Display(Name = "奖惩结果")]
        public int ResultId { get; set; }
    }
}